package alipay.openplatform.edu.campus.jiuye.service.iservice.user;

import alipay.openplatform.edu.campus.jiuye.model.po.UserTopicInfoKeyPO;
import alipay.openplatform.edu.campus.jiuye.model.po.UserTopicInfoPO;
import alipay.openplatform.edu.campus.jiuye.model.vo.UserTopicVO;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;

public interface IUserTopicInfoService {
    /**
     * 报名或者收藏
     *
     * @param userTopicInfoVo
     * @return
     */
    int sendTopic(UserTopicVO userTopicInfoVo) throws InvocationTargetException, IllegalAccessException;

    Map getMyTopicByPage(String userId) throws Exception;

    /**
     * 取消收藏
     *
     * @param userTopicInfoVo
     * @return
     */
    int cancelTopic(UserTopicVO userTopicInfoVo) throws InvocationTargetException, IllegalAccessException;

    UserTopicInfoPO selectByPrimaryKey(UserTopicInfoPO key);

    UserTopicInfoPO selectIfExist(Map map);

    int updateByPrimaryKeySelective(UserTopicInfoPO record);

    int querySmsIfSend(String userId, Integer topicId);

    int updateIfSMS(String userId, Integer topicId);

    int updateTopic(Map map);

}